import xadmin
# 文集
from .models import ArticleCollection
class ArticleCollectionModelAdmin(object):
    list_display = ["id","name"]
xadmin.site.register(ArticleCollection,ArticleCollectionModelAdmin)
# 文章
from .models import Article
class ArticleModelAdmin(object):
    list_display = ["id","title","collection", "user","is_public","pub_date"]
xadmin.site.register(Article,ArticleModelAdmin)
# 专题
from .models import ArticleSpecial
class ArticleSpecialModelAdmin(object):
    list_display = ["id","name", "user","article_count","follow_count"]
xadmin.site.register(ArticleSpecial,ArticleSpecialModelAdmin)